#include "KPF_Locker.h"

KPF_Locker::KPF_Locker( void )
{
	memset( &m_Locker, 0x00, sizeof(m_Locker) );
	
	init_mutex( &m_Locker );
}

KPF_Locker::~KPF_Locker( void )
{
	
}
	
KPF_Locker::KPF_Locker( const KPF_Locker &other )
{
	if ( this != &other )
	{
		this->m_Locker = other.m_Locker;
	}
}
	
KPF_Locker &KPF_Locker::operator =( const KPF_Locker &other )
{
	if ( this != &other )
	{
		this->m_Locker = other.m_Locker;
	}
	
	return *this;
}

void KPF_Locker::Lock( void )
{
	lock( &m_Locker );
}
	
void KPF_Locker::Unlock( void )
{
	unlock( &m_Locker );
}	
